
<div class="page-content" id="decorationPageContent">

	<div class="row">
		<div class="col-xs-12">
			<div id="condList" class="fl_search clearfix"></div> <!-- 查询条件-->
			<div id="resultList" class="clearfix tab-pane active"></div> <!--查询结果-->
			<div id="pagenation" class="fl-page-wrap clearfix"></div> <!--分页-->
		</div>
	</div>
	
	<!--各种的弹出层-->
	<div class="modal fade" id="agreementModal" tabindex="-1" data-backdrop="static">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span>&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="agreementDialog">合同</h4>
				</div>

				<div class="modal-body">
					<p align="center">
						<button type="button" class="btn btn-app btn-primary no-radius" id='additionalInfoBtn'>
							<i class="icon-envelope bigger-230"></i>录入信息
						</button>
						<a class="btn btn-app btn-primary no-radius" id='printContractBtn' target="_blank">
							<i class="icon-envelope bigger-230"></i>打印合同
						</a>
					</p>
				</div>

				<div class="modal-footer">
					<button type="button" id="cancelBtn" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>
			</div>
		</div>
	</div>

	<div class="modal fade" id="additionalTermsModal" tabindex="-1">
		<div class="modal-dialog" style="width: 800px;">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"><span>&times;</span><span class="sr-only">Close</span></button>
					<h4 class="modal-title" id="additionalTermsDailog">合同信息</h4>
				</div>
				<div class="modal-body">
					<form class="form-horizontal">
						<input id='contractAutoId' class='hide' />
						<div class="form-group">
							<label for="workingDuration" class="col-sm-3 control-label no-padding-right">工期</label>
							<div class="col-sm-9">
								<input type="text" class="col-xs-10 col-sm-5 v_number v_required" data-toggle="popover" data-trigger='manual' maxlength="4" id="workingDuration">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="startTime">开工时间</label>
							<div class="col-sm-9">
								<input id="startTime" type="text" class="col-sm-5 date-picker" data-date-format="yyyy-mm-dd" data-toggle="popover" data-trigger='manual' />
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="endTime">竣工时间</label>
							<div class="col-sm-9">
								<input id="endTime" type="text" class="col-sm-5 date-picker" data-date-format="yyyy-mm-dd" data-toggle="popover" data-trigger='manual' />
							</div>
						</div>
						<div class="form-group"  style="padding: 0 10px;">
							<div class="wysiwyg-editor" id="additionalInfo"></div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" id="saveAdditionalInfoBtn" class="btn btn-primary">保存</button>
					<button type="button" id="cancelAdditionalInfoBtn" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>
			</div>
		</div>
	</div>

	<div class="modal fade" id="drawLineModal" tabindex="-1" data-backdrop="static">
		<div class="modal-dialog">
			<div class="modal-content">

				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span>&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="drawLineDialog">放线申请</h4>
				</div>

				<div class="modal-body">
					<form class="form-horizontal">
						<div class="well">
							<h4 class="green smaller lighter">说明</h4>
							<p>申请放线时间不等同于最终放线时间 .</p>
						</div>
						<div class="form-group">
							<input class="hide" id="dischargeLineOrderId" type="text" />
							<label for="applayTime" class="col-sm-3 control-label no-padding-right">放线时间</label>
							<div class="col-sm-9">
								<input class="date-picker col-xs-10 col-sm-5 v_required" id="applayTime" type="text" data-date-format="yyyy-mm-dd" data-toggle="popover" data-trigger='manual' readonly/>
							</div>
						</div>

						<div class="form-group">
							<label for="applayDes" class="col-sm-3 control-label no-padding-right">备注</label>
							<div class="col-sm-9">
								<textarea id="applayDes" class="col-xs-10 col-sm-5 v_name" rows="3" data-toggle="popover" data-trigger='manual' maxlength="100"></textarea>
							</div>
						</div>
					</form>
				</div>

				<div class="modal-footer">
					<button type="button" id="applayDrawLineBtn" class="btn btn-primary">保存</button>
					<button type="button" id="cancelBtn" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>
			</div>
		</div>
	</div>

	<div class="modal fade" id="drawContractModal" tabindex="-1" data-backdrop="static">
		<div class="modal-dialog">
			<div class="modal-content">

				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span>&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="drawContractDialog">签订合同</h4>
				</div>

				<div class="modal-body">
					<form class="form-horizontal">

						<div class="form-group">
							<label for="coupon" class="col-sm-3 control-label no-padding-right"></label>
							<div class="col-sm-9">
								<span id="coupon" ></span>
							</div>
						</div>

						<div class="form-group">
							<label for="thing" class="col-sm-3 control-label no-padding-right"></label>
							<div class="col-sm-9">
								<span id="thing" ></span>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="netperfor">净业绩</label>
							<div class="col-sm-9">
								<input type="text" maxlength="64" id="netperfor" class="col-xs-10 col-sm-6 v_decorationNumberAll v_required" data-toggle="popover" data-trigger='manual'/>
								<span class='star'></span>
							</div>
						</div>
						<div class="space-4"></div>

						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="comperfor">复合业绩</label>
							<div class="col-sm-9">
								<input type="text" maxlength="64" id="comperfor" class="col-xs-10 col-sm-6 v_decorationNumberAll v_required" data-toggle="popover" data-trigger='manual'/>
								<span class='star'></span>
							</div>
						</div>
						<div class="space-4"></div>

					</form>
				</div>

				<div class="modal-footer">
					<button type="button" id="contractBtn" class="btn btn-primary">保存</button>
					<button type="button" id="cancelBtn" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>
			</div>
		</div>
	</div>

	<div class="modal fade" id="refundContractModal" tabindex="-1"	>
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span>&times;</span>
						<span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="drawLineDialog">合同终止</h4>
				</div>

				<div class="modal-body">
					<form class="form-horizontal">
						<div class="form-group">
							<input class="hide" id="decorationOrderId" type="text" />
							<label for="applayTime" class="col-sm-3 control-label no-padding-right">付款信息</label>
							<div class="col-sm-9">
								<span id="decorationPaymentInfo"></span>
							</div>
						</div>

						<div class="form-group">
							<label for="refundValue" class="col-sm-3 control-label no-padding-right">退款金额</label>
							<div class="col-sm-9">
								<input id="refundValue" class="col-xs-10 col-sm-5 v_required v_price" type="text" data-toggle="popover" data-trigger='manual'/>
							</div>
						</div>
					</form>
				</div>

				<div class="modal-footer">
					<button type="button" id="refundContractBtn" class="btn btn-primary">提交</button>
					<button type="button" id="cancelBtn" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>
			</div>
		</div>
	</div>

	<div class="modal fade" id="customerInfoModal" tabindex="-1">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span>&times;</span>
						<span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="customerInfoDialog">客户信息修改</h4>
				</div>

				<div class="modal-body">
					<form class="form-horizontal">
						<div class="form-group">
							<label for="refundValue" class="col-sm-3 control-label no-padding-right">客户姓名</label>
							<div class="col-sm-9">
								<input id="customerName" class="col-xs-10 col-sm-5 v_required v_name" type="text" data-toggle="popover" data-trigger='manual'/>
							</div>
						</div>

						<div class="form-group">
							<label for="refundValue" class="col-sm-3 control-label no-padding-right">联系方式</label>
							<div class="col-sm-9">
								<input id="phone" class="col-xs-10 col-sm-5 v_required v_phones2" type="text" data-toggle="popover" data-trigger='manual'/>
							</div>
						</div>
					</form>
				</div>

				<div class="modal-footer">
					<button type="button" id="customerInfoBtn" class="btn btn-primary">提交</button>
					<button type="button" id="cancelBtn" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>
			</div>
		</div>
	</div>

</div>

<script type="text/javascript">
	$.loadScript(['js/utils/decorationPageUtils.js','js/utils/decorationUtils.js','js/decoration/decoration.js']);
</script>
